'use strict';

/** @type Egg.EggPlugin */
module.exports = {
    // had enabled by egg
    static: {
        enable: true,
    },
    ejs: {
        enable: true,
        package: 'egg-view-ejs',
    },
    session: {
        key: 'EGG_SESS',
        maxAge: 0.5 * 3600 * 1000, // 1 天
        httpOnly: true,
        encrypt: true,
    },
    mysql: {
        enable: true,
        package: 'egg-mysql',
    },
    sequelize: {
        enable: true,
        package: 'egg-sequelize',
    },
    cors: {
        enable: true,
        package: "egg-cors",
    },
};